function P1(list){
    base(this,LSprite,[]);//此类继承Sprite
    var self=this;

    self.bg=new LBitmap(new LBitmapData(datalist['bg0']));
    self.addChild(self.bg);

    self.infor=new LBitmap(new LBitmapData(datalist['infor']));
    self.addChild(self.infor);
    self.infor.targetX=304;
    self.infor.targetY=353;
    self.infor.x=self.infor.targetX+400;
    self.infor.y=353;

    self.p2=new LBitmap(new LBitmapData(datalist['p1_p2']));
    self.addChild(self.p2);
    self.p2.targetX=373;
    self.p2.targetY=198;
    self.p2.x=self.p2.targetX+300;
    self.p2.y=198;

    self.p0=new LBitmap(new LBitmapData(datalist['p1_p0']));
    self.addChild(self.p0);
    self.p0.targetX=57;
    self.p0.targetY=368;
    self.p0.x=self.p0.targetX+800;
    self.p0.y=368;

    self.z1=new LBitmap(new LBitmapData(datalist['quanxin']));
    self.addChild(self.z1);
    self.z1.targetX=107;
    self.z1.targetY=149;
    self.z1.x=self.z1.targetX+500;
    self.z1.y=149;

    self.z2=new LBitmap(new LBitmapData(datalist['jingliang']));
    self.addChild(self.z2);
    self.z2.targetX=58;
    self.z2.targetY=523;
    self.z2.x=self.z2.targetX+600;
    self.z2.y=523;

    self.car=new LBitmap(new LBitmapData(datalist['car1']));
    self.addChild(self.car);
    self.car.targetX=stageW/2-self.car.getWidth()/2;
    self.car.targetY=441;
    self.car.x=self.car.targetX+600;
    self.car.y=441;

    self.p1=new LSprite();
    self.p1.bg=new LBitmap(new LBitmapData(datalist['p1_p1']));
    self.p1.addChild(self.p1.bg);
    self.p1.bg2=new LBitmap(new LBitmapData(datalist['p1_p12']));
    self.p1.addChild(self.p1.bg2);
    self.p1.bg2.alpha=0;
    self.addChild(self.p1);
    self.p1.targetX=110;
    self.p1.targetY=187;
    self.p1.x=self.p1.targetX+900;
    self.p1.y=187;

    self.p1.addEventListener(LMouseEvent.MOUSE_DOWN,function(){
        if(isClick==false)return;
        isClick=false;
        self.scaleOut();
    });
}

P1.prototype.PageOut=function(){
    var self=this;
    if(self.tween)self.tween.pause();
    self.p1.bg2.alpha=0;
    LTweenLite.to(self.infor,1,{x:self.infor.targetX+400,ease:Cubic.easeOut});
    LTweenLite.to(self.p2,1,{x:self.p2.targetX+300,ease:Cubic.easeOut});
    LTweenLite.to(self.p0,1,{x:self.p0.targetX+800,ease:Cubic.easeOut});
    LTweenLite.to(self.p1,1,{x:self.p1.targetX+900,ease:Cubic.easeOut});
    LTweenLite.to(self.z1,1,{x:self.z1.targetX+500,ease:Cubic.easeOut});
    LTweenLite.to(self.z2,1,{x:self.z2.targetX+600,ease:Cubic.easeOut});
    LTweenLite.to(self.car,1,{x:self.car.targetX+600,ease:Cubic.easeOut});
}

P1.prototype.PageIn=function(){
    var self=this;
    LTweenLite.to(self.infor,1,{x:self.infor.targetX-0,ease:Cubic.easeOut,delay:0.1});
    LTweenLite.to(self.p2,1,{x:self.p2.targetX-0,ease:Cubic.easeOut,delay:0.2});
    LTweenLite.to(self.p0,1,{x:self.p0.targetX-0,ease:Cubic.easeOut,delay:0.1});
    LTweenLite.to(self.p1,1,{x:self.p1.targetX-0,ease:Cubic.easeOut,delay:0.2,onComplete:function(){
        self.tween=LTweenLite.to(self.p1.bg2,0.8,{alpha:1,loop:true})
            .to(self.p1.bg2,0.8,{alpha:0});
    }});
    LTweenLite.to(self.z1,1,{x:self.z1.targetX-0,ease:Cubic.easeOut,delay:0.1});
    LTweenLite.to(self.z2,1,{x:self.z2.targetX-0,ease:Cubic.easeOut,delay:0});
    LTweenLite.to(self.car,1,{x:self.car.targetX-0,ease:Cubic.easeOut,delay:0.2});
}

P1.prototype.scaleOut=function(){
    var self=this;

    if(self.tween)self.tween.pause();
    self.p1.bg2.alpha=0;
    LTweenLite.to(self.car,0.8+0.5,{scaleX:3,scaleY:3,x:640,y:self.car.targetY+500,ease:Cubic.easeOut});
    LTweenLite.to(self.infor,0.8+0.5,{scaleX:3,scaleY:3,x:640,y:self.infor.targetY+200,ease:Cubic.easeOut});
    LTweenLite.to(self.p2,0.8+0.5,{scaleX:3,scaleY:3,x:640+100,y:self.p2.targetY+100,ease:Cubic.easeOut});
    LTweenLite.to(self.z1,0.8+0.5,{scaleX:3,scaleY:3,x:-550,y:0,ease:Cubic.easeOut});
    LTweenLite.to(self.z2,0.8+0.5,{scaleX:3,scaleY:3,x:-500,y:self.z2.targetY+400,ease:Cubic.easeOut});
    LTweenLite.to(self.p0,0.8+0.5,{scaleX:3,scaleY:3,x:-700,y:self.p0.targetY+100,ease:Cubic.easeOut});
    LTweenLite.to(self.p1,0.8+0.5,{scaleX:2.6,scaleY:2.6,x:-18,y:self.p1.targetY+150,ease:Cubic.easeOut,onComplete:function(){
        game.subIn();
    }});
}

P1.prototype.goHome=function(){
    var self=this;
    LTweenLite.to(self.car,0.8+0.5,{scaleX:1,scaleY:1,x:self.car.targetX,y:self.car.targetY+0,ease:Cubic.easeOut});
    LTweenLite.to(self.infor,0.8+0.5,{scaleX:1,scaleY:1,x:self.infor.targetX,y:self.infor.targetY+0,ease:Cubic.easeOut});
    LTweenLite.to(self.p2,0.8+0.5,{scaleX:1,scaleY:1,x:self.p2.targetX,y:self.p2.targetY+0,ease:Cubic.easeOut});
    LTweenLite.to(self.z1,0.8+0.5,{scaleX:1,scaleY:1,x:self.z1.targetX,y:self.z1.targetY,ease:Cubic.easeOut});
    LTweenLite.to(self.z2,0.8+0.5,{scaleX:1,scaleY:1,x:self.z2.targetX,y:self.z2.targetY+0,ease:Cubic.easeOut});
    LTweenLite.to(self.p0,0.8+0.5,{scaleX:1,scaleY:1,x:self.p0.targetX,y:self.p0.targetY+0,ease:Cubic.easeOut});
    LTweenLite.to(self.p1,0.8+0.5,{scaleX:1,scaleY:1,x:self.p1.targetX,y:self.p1.targetY+0,ease:Cubic.easeOut,onComplete:function(){
        self.tween=LTweenLite.to(self.p1.bg2,0.8,{alpha:1,loop:true})
            .to(self.p1.bg2,0.8,{alpha:0});
        isClick=true;
    }});
}





